package level.tiles;


public abstract class Tile
{
	public static final Tile[] tiles = new Tile[10];
	
	
	
	
	protected byte tileId;
	protected boolean solid;
	boolean useCustomColour;
	
	public Tile(int tileId, boolean isSolid)
	{
		this.tileId = (byte) tileId;
		if (tiles[tileId] != null) throw new RuntimeException("Duplicate tile id on " + tileId);

		this.solid = isSolid;
	}
	
	public byte getId()
	{
		return tileId;
	}
	
	public boolean isSolid()
	{
		return solid;
	}
}
